<ui:composition
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:nxl="http://nuxeo.org/nxforms/layout">

<h:form rendered="#{currentDocument.hasSchema('files')}"
  id="document_files_view">

  <nxl:layout name="files" mode="view" value="#{currentDocument}" />  

</h:form>

</ui:composition>